#!/bin/bash
#===============================================================================
# Copyright 2011 zod.yslin
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# 
# Author: zod.yslin
# Email: 
# File Name: mount.sh
# Description: 
# 
# Edit History: 
#   2011-09-27    File created.
#===============================================================================
#如果要使用lsattr 或chattr
#Step 1:::
#要確定該filesystem 有加上attrs的屬性
#假設要在/data的目錄下使用, 裝置為/dev/sda6
#vi /etc/fstab
#/dev/sda6 /data reiserfs acl,user_xattr,attrs 12

#mount
#mount -o remount /data
#mount

#cifs, nfs 不能設定user_xattr, 試著用iscsi
sudo mount -t cifs -o username="xxx",password="***",iocharset=utf8,uid=1000,gid=1000 \
    //127.0.0.1/market /mnt/market
